import React from 'react';

export async function renderComponent(componentName, componentPath) {
  const { default: Component } = await import('@/'+componentPath+'.js');
  let com = React.createElement(Component)
  return com;
}



